import java.util.Scanner;

/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2212 2213
 * @Package: PACKAGE_NAME
 * @File: ChineseZodiac.java
 * @Time: 2022/11/29 9:27
 * @Author: abcque
 * @Description: 将年份转换为生肖
 * @Modifier
 * @ModifyDate
 * @ModifyRemark
 */
public class ChineseZodiac {
    public static void main(String[] args) {
        // step1、定义年份 year
        int year;
        // step2、输入年份
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入要查看生肖的年份：");
        year = scanner.nextInt();

        // step3、将年份转换为生肖   2022 % 12 = 6 虎年
        switch (year % 12){
            case 6:
                System.out.println(year + " 年是虎年");
                break;
            case 7:
                System.out.println(year + " 年是兔年");
                break;
            case 8:
                System.out.println(year + " 年是龙年");
                break;
            case 9:
                System.out.println(year + " 年是蛇年");
                break;
            case 10:
                System.out.println(year + " 年是马年");
                break;
            case 11:
                System.out.println(year + " 年是羊年");
                break;
            case 0:
                System.out.println(year + " 年是猴年");
                break;
            case 1:
                System.out.println(year + " 年是鸡年");
                break;
            case 2:
                System.out.println(year + " 年是狗年");
                break;
            case 3:
                System.out.println(year + " 年是猪年");
                break;
            case 4:
                System.out.println(year + " 年是鼠年");
                break;
            case 5:
                System.out.println(year + " 年是牛年");
                break;
        }
    }
}
